package com.lagou.java;


import com.lagou.java.service.UserService;

import java.util.Date;
import java.util.concurrent.TimeUnit;

/**
 * @Classname ClientBootstrap
 * @Description TODO
 * @Date 2020/7/22 19:42
 * @Created by pc
 */
public class ClientBootstrap {

//    public static final String providerName = "UserService#sayHello#";

    public static void main(String[] args) throws Exception {
        // 连接 zookeeper
        RpcConsumer.initZkClient();
//        UserService userService = (UserService) new RpcConsumer().createProxy(UserService.class);
//        for (;;) {
//            System.out.println("============>>>>>>>>>>>>>>> new loop, prepare message ... " + new Date());
//            TimeUnit.SECONDS.sleep(1);
//            System.out.println("====>> 服务端返回信息 ： " + userService.sayHello("are you ok ? " + new Date()));
//        }
    }
}
